<?php

if(!$_SESSION['user']['username']){
	//redirect(BASE_URL);
}

switch($_GET['act']){
	
	
case "club":
require("controllers/user/club.php");
break;


	case "update_story_source":
		require 'controllers/user/update_story_source.php';
		break;

case "split_table":
	require 'controllers/user/split_table.php';
	break;
	
case "register":
require("controllers/user/register.php");
break;
case "login":
require("controllers/user/login.php");
break;
case "login_facebook":
require("controllers/user/login_facebook.php");
break;
case 'test':
	require 'controllers/user/test.php';
	break;

case "logout":
require("controllers/user/logout.php");
break;

case "profile":
require("controllers/user/profile.php");
break;
case "changepassword":
require("controllers/user/changepassword.php");
break;
case "forgetpassword":
require("controllers/user/forgetpassword.php");
break;
case "avatar":
require("controllers/user/avatar.php");
break;
case "thongtin":
require("controllers/user/thongtin.php");
break;

case 'post_image':
	require 'controllers/user/post_image.php';
	break;
case 'post_video':
	require 'controllers/user/post_video.php';
	break;
	
case 'post_text':
	require 'controllers/user/post_text.php';
	break;
case "ajax":
	require 'controllers/user/ajax.php';
	break;
case "upload":
	require 'controllers/user/upload_step.php';

	break;


	
}


switch($_POST['act']){
case "verify":
require("controllers/user/verify.php");
break;
case "avatar":
require("controllers/user/avatar.php");

exit();
break;
case "login_facebook":
require("controllers/user/facebook.php");
break;
}